from flask import Flask
import os

app = Flask(__name__)

@app.route('/txt/<name>')
def txt(name):
    file = open('./txt/'+name, 'r')
    str = file.read()
    file.close()
    return str

if __name__ == '__main__':
    app.run()